package com.xiaoqi.api.mapper;

import com.xiaoqi.api.dto.SchoolCenterDTO;
import com.xiaoqi.api.pojo.SchoolCenter;
import com.xiaoqi.api.query.SchoolCenterQuery;
import com.xiaoqi.api.vo.ProjectVO;
import com.xiaoqi.api.vo.SchoolCenterVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
@Mapper
@Component
public interface SchoolCenterMapper {
    List<SchoolCenterVO> find(SchoolCenterQuery schoolCenterQuery);

    void add(SchoolCenter schoolCenter);

    void update(SchoolCenter schoolCenter);

    SchoolCenterVO findById(Integer id);

    @Delete("delete from t_school where id =#{id}")
    void deleteById(Integer id);
}
